package com.lab.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/ajaxdemo")
public class AjaxDemoCotroller {

	@RequestMapping("/getData")
	@ResponseBody
	public String ajaxDemo(HttpServletRequest request , HttpServletResponse response) {
		String data = request.getParameter("data");
		return data;
	}
}
